package com.itheima.Homework;

/*
* 键盘录入一句话，然后写入指定的文件中
* */


import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class One {
    public static void main(String[] args) throws IOException {

        Scanner scanner = new Scanner(System.in);

        FileWriter fi = new FileWriter("day12\\a.txt");
        BufferedWriter b = new BufferedWriter(fi);

        String next = scanner.next();

        b.write(next);

        b.flush();
        b.close();
    }
}
